/*******************************************************************************
 * Level Master 2000
 * Copyright (C) 2010 Christian Herzog
 * For more information see http://code.google.com/p/levelmaster2000/
 *
 * This file is licensed under the terms of the MIT license, see
 * http://www.opensource.org/licenses/mit-license.php for further information.
 ******************************************************************************/

package com.levelmaster2000
{
    import flash.external.ExternalInterface;
    import com.pblabs.engine.debug.ILogAppender;
    
    public class EditorLogger implements ILogAppender
    {
        public function addLogMessage(level:String, loggerName:String, message:String):void
        {
            if(ExternalInterface.available)
            {
                ExternalInterface.call("addLogMessage", level, loggerName, message);
            }
        }
    }
}